﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace Aribaccio.Device.Struct
{
    /// <summary>
    /// 定义结构体输入无符号短整型ushort
    /// </summary>
    [StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
    public struct StructInputRegister
    {
        /// <summary>
        /// 寄存器地址/起始地址
        /// </summary>
        public ushort RegisterAddress { get; set; }
        /// <summary>
        /// 寄存器数量/寄存器值
        /// </summary>
        public ushort RegisterData { get; set; }
    }
}
